﻿using ManaSky.Common.Model;
using ManaSky.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ManaSky.IService
{
    /// <summary>
    /// 用户信息服务接口
    /// </summary>
    public interface ISysUsersService : IFoundService<sys_user>
    {
        /// <summary>
        /// 使用用户名称查询用户信息
        /// </summary>
        /// <returns></returns>
        public Task<OperateResult> GetUserByName(string name);
        /// <summary>
        /// 查询
        /// </summary>
        /// <returns></returns>
        public Task<OperateResult> GetList();
        /// <summary>
        /// 保存
        /// </summary>
        /// <returns></returns>
        public Task Save(sys_user sys_Users);
        /// <summary>
        /// 更新
        /// </summary>
        /// <returns></returns>
        public Task Update(sys_user sys_Users);
        /// <summary>
        /// 删除
        /// </summary>
        /// <returns></returns>
        public Task Delete(sys_user sys_Users);
        /// <summary>
        /// 用户登陆
        /// </summary>
        /// <param name="sys_Users"></param>
        /// <returns></returns>
        public Task<OperateResult> UserLogin(sys_user sys_Users);
    }
}
